#!/usr/bin/env python3

from flask import Flask,url_for
app = Flask(__name__)
@app.route('/user/<username>',endpoint='wenyao')
def profile(username):pass
with app.test_request_context():
    print (url_for('wenyao',username='xlb'))

@app.route('/')
def v_index():
    uid = request.form['uid']
    pwd = request.form['pwd']
    return 'uid:%s pwd:%s'%(uid,pwd)
